var express = require('express');
var app = require('express')();
var http = require('http').Server(app);
var port = process.env.PORT || 80;


app.use('/static', express.static('static'));


// 路由
app.get('/', function(req, res){
  res.sendFile(__dirname + '/index.html');
});
app.get('/01', function(req, res){
  res.sendFile(__dirname + '/demo01.html');
});
app.get('/02', function(req, res){
  res.sendFile(__dirname + '/demo02.html');
});


http.listen(port, function(){
  console.log('listening on *:' + port);
});
